import request from '@/utils/request'

// 查询第三方仓库信息列表
export function list3rdwarehouse(query) {
  return request({
    url: '/system/3rdwarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询第三方仓库信息详细
export function get3rdwarehouse(warehouseId) {
  return request({
    url: '/system/3rdwarehouse/' + warehouseId,
    method: 'get'
  })
}

// 新增第三方仓库信息
export function add3rdwarehouse(data) {
  return request({
    url: '/system/3rdwarehouse',
    method: 'post',
    data: data
  })
}

// 修改第三方仓库信息
export function update3rdwarehouse(data) {
  return request({
    url: '/system/3rdwarehouse',
    method: 'put',
    data: data
  })
}

// 删除第三方仓库信息
export function del3rdwarehouse(warehouseId) {
  return request({
    url: '/system/3rdwarehouse/' + warehouseId,
    method: 'delete'
  })
}
